package com.augurit.smartform.display.gis;

import com.augurit.smartform.display.TagElement;
import com.augurit.smartform.display.TagParser;

public class ScaleBarParser implements TagParser {

	public String[] parser(TagElement tagElement) {
		String[] strArr=new String[3];
		StringBuffer js=new StringBuffer();
		
		js.append("<script type=\"text/javascript\">");
		js.append(System.getProperty("line.separator"));
		js.append("$(window).bind(\"load\", function(){");
		js.append(System.getProperty("line.separator"));
		js.append("GisObject.addScalebar();");
		js.append(System.getProperty("line.separator"));
		js.append("});");
		js.append(System.getProperty("line.separator"));
		js.append("</script>");
		
		strArr[1]=js.toString();
		
		return strArr;
	}

}
